package demo2;

import demo1.BookList;
import demo3.Operation;

public abstract class User {
    public String name;
    public String id;

    public Operation[] operation;
    public User(String name, String id) {
        this.name = name;
        this.id = id;
    }

    public User(String name) {
        this.name = name;
    }

    public abstract int meau();
    public  void doWork(int choice, BookList book){
        this.operation[choice].work(book);
    }
}
